<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PlatformOwner extends Model
{
    public $timestamps = false;
    protected $connection = 'mysql_center';
    protected $table = 'electric_platform_owner';
    protected $guarded = [];

    public function community_data()
    {
        return $this->hasOne(ElectricCommunity::class, 'id','community');
    }

    public function community_areas_data()
    {
        return $this->hasOne(ElectricCommunityArea::class,  'id',  'community_area');
    }

}
